package com.dyc.caradvertisting.ui.fmt.tab.mine.details;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.dyc.caradvertisting.R;
import com.njh.tools.base.BaseFragment;

/**
 * 用户详情
 */
public class MineDetailsFmt extends BaseFragment<MineDetailsPresenter ,MineDetailsModel>
        implements MineDetailsContract.View {

    public MineDetailsFmt() {
        // Required empty public constructor
    }

    public static MineDetailsFmt newInstance() {
        MineDetailsFmt fragment = new MineDetailsFmt();
        Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return getView(inflater, container);
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_mine_details_fmt;
    }

    @Override
    public void initView(View baseView) {
        initToolbarNav(R.string.title_mine_detail);
    }

    @Override
    public boolean isSwipeBack() {
        return false;
    }

    @Override
    public void initPresenter() {
      mPresenter.setVM(this,mModel,this._mActivity);
    }

    @Override
    public void finish() {
        this.onBackPressedSupport();
    }
}
